package com.learnyou.server.xingzuo.dto.paramDTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
@Builder
public class CourseParamDTO {
    @NotEmpty(message = "课程名称不能为空")
    @Size(max = 30, message = "课程名称最多{max}个字符")
    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "课程描述说明")
    private String courseRemark;
}
